namespace Vin.Tool.Attributes;

/// <summary>
/// 限制只能有一个
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class IsReferenceTypeAttribute : Attribute
{
    /// <summary>
    /// 字段名称
    /// </summary>
    public string? FieldName { get; set; }

    public IsReferenceTypeAttribute()
    {
    }

    public IsReferenceTypeAttribute(string fieldName)
    {
        FieldName = fieldName;
    }
}